<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Pragma" content="no-cache" />
<meta http-equiv="Cache-Control" content="no-store, must-revalidate, no-cache, private, max-age=0, post-check=0, pre-check=0" />
<meta http-equiv="Expires" content="Sun, 1 Jan 2010 01:00:00 GMT" />
<meta http-equiv="X-Ua-Compatible" content="IE=7" />
<meta name="robots" content="noarchive,noindex,nofollow" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{{$settings.blogname}}</title>
<link type="text/css" rel="stylesheet" href="{{get_app_inf key='THEME_DIR'}}/img/style.css" />
{{webcontrol type='add_js'}}
</head>
<body>
<div id="wrap">
    <div id="header">
        <div id="inner-header">
            <div id="header-menu"><a href="../">Browse</a><span><img src="{{get_app_inf key='THEME_DIR'}}/img/top_nav_line.gif" /></span><a href="#">Help</a><span><img src="{{get_app_inf key='THEME_DIR'}}/img/top_nav_line.gif" /></span><a href="#">Logout</a></div>
            <h1 id="logo"></h1>
            <div id="menu">
                <ul>
{{assign var='ctlName' value=$smarty.get.ctl }}
                    <li onmouseover="setMenu('dashboard',this);"{{if $ctlName==''}} class="focus"{{/if}}><a href="{{url action='dashboard'}}">Dashboard</a></li>
                    <li onmouseover="setMenu('posts',this);"{{if $ctlName=='posts'}} class="focus"{{/if}}><a href="{{url controller='posts'}}">Posts</a></li>
                    <li onmouseover="setMenu('media',this);"{{if $ctlName=='media'}} class="focus"{{/if}}><a href="{{url controller='media'}}">Media</a></li>
                    <li onmouseover="setMenu('comments',this);"{{if $ctlName=='comments'}} class="focus"{{/if}}><a href="{{url controller='comments'}}">Comments</a></li>
                    <li onmouseover="setMenu('links',this);"{{if $ctlName=='links'}} class="focus"{{/if}}><a href="{{url controller='links'}}">Links</a></li>
                    <li onmouseover="setMenu('tools',this);"{{if $ctlName=='tools'}} class="focus"{{/if}}><a href="{{url controller='tools'}}">Tools</a></li>
                    <li onmouseover="setMenu('settings',this);"{{if $ctlName=='settings'}} class="focus"{{/if}}><a href="{{url controller='settings'}}">Settings</a></li>
                </ul>
            </div>
            <div id="sub-menu">
                <ul id="dashboard"{{if $ctlName!=''}} style="display:none"{{/if}}>
                    <li><a href="../">Browse</a></li>
                    <li><a href="https://www.google.com/analytics/home/?hl=zh-CN">Analytics</a></li>
                    <li><a href="{{url controller='posts'}}">Search</a></li>
                </ul>
                <ul id="posts"{{if $ctlName!='posts'}} style="display:none"{{/if}}>
                    <li><a href="{{url controller='posts'}}">All Posts</a></li>
                    <li><a href="{{url controller='posts' action='new'}}">New Post</a></li>
                    <li><a href="{{url controller='posts' action='categories'}}">Categories</a></li>
                    <li><a href="{{url controller='posts' action='tags'}}">Tags</a></li>
                </ul>
                <ul id="media"{{if $ctlName!='media'}} style="display:none"{{/if}}>
                    <li><a href="{{url controller='media'}}">Library</a></li>
                    <li><a href="{{url controller='media'  action='gallery'}}">Gallery</a></li>
                </ul>
                <ul id="comments"{{if $ctlName!='comments'}} style="display:none"{{/if}}></ul>
                <ul id="links"{{if $ctlName!='links'}} style="display:none"{{/if}}>
                    <li><a href="{{url controller='links'}}">Edit</a></li>
                    <li><a href="{{url controller='links' action='categories'}}">Link Categories</a></li>
                </ul>
                <ul id="tools"{{if $ctlName!='tools'}} style="display:none"{{/if}}>
                    <li><a href="{{url controller='tools'}}">Setup</a></li>
                    <li><a href="{{url controller='tools'}}">Twitter</a></li>
                    <li><a href="{{url controller='tools'}}">Digu</a></li>
                    <li><a href="{{url controller='tools'}}">Delicious</a></li>
                    <li><a href="{{url controller='tools'}}">Picasa</a></li>
                </ul>
                <ul id="settings"{{if $ctlName!='settings'}} style="display:none"{{/if}}>
                    <li><a href="{{url controller='settings' action='profile'}}">Profile</a></li>
                    <li><a href="{{url controller='settings'}}">Options</a></li>
                    <li><a href="{{url controller='settings' action='html'}}">Html</a></li>
                    <li><a href="{{url controller='settings' action='feeds'}}">Feeds</a></li>
                </ul>
            </div>
        </div>
    </div>